To use the services of the base image decompressor, your image decompressor component must open a connection to the base image decompressor component. Listing 1 illustrates how to make the connection.
Listing 1 Connecting to the base image decompressor component
CodecComponent baseCodec;
OSErr err;
err = OpenADefaultComponent (decompressorComponentType,
kBaseCodecType,
&baseCodec);
err = ComponentSetTarget (baseCodec,
self);
| Previous | Chapter Contents | Chapter Top | Next |